package org.example.spring.poi.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author hzq
 * @since 2022/6/15
 */
@Data
public class SysUser extends Model<SysUser> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "username must be not null")
    private String username;

}
